package de.koller.caldera.render.textures.surfaces;

import de.koller.aframe.gl.ATexture;
import de.koller.oceanFramework.gl.util.ParticleTexture;
import org.lwjgl.opengl.GL11;

public class PlainSurface extends ATexture implements ATexture.ITextureBuilder {

	@Override
	protected void setUp( TextureParameters tparam ) {
		tparam.builder = this;
		tparam.magFilter = GL11.GL_LINEAR;
		tparam.size = 2;
	}

	@Override
	public void build( ParticleTexture texture ) {
		texture.clear( 0xffff0000 );
		texture.setPixel( 0xffff0000, 0, 0 );
		texture.setPixel( 0xff00ff00, 0, 1 );
		texture.setPixel( 0xff0000ff, 1, 0 );
		texture.setPixel( 0xffff00ff, 1, 1 );
	}

}
